/*
 * @Descripttion: vue and node-bs
 * @Author: weijunliang-jul
 * @Date: 2021-02-04 10:49:56
 * @LastEditors: weijunliang-jul
 * @LastEditTime: 2021-02-25 19:08:58
 */
/** When your routing admin is too long, you can split it into small modules **/

import Layout from '@/layout'

const adminRouter = {
  path: '/Manage',
  component: Layout,
  redirect: '/Manage/StudentsAdmin',
  name: 'admin',
  meta: {
    title: 'ManageAdmin',
    icon: 'table',
    roles: ['admin']
  },
  children: [
    {
      path: 'StudentsAdmin',
      component: () => import('@/views/admin/StudentsAdmin'),
      name: 'StudentsAdmin',
      meta: { title: 'studentAdmin' ,icon: 'el-icon-user-solid'}
      
    },
    {
      path: 'teacherAdmin',
      component: () => import('@/views/admin/TeacherAdmin'),
      name: 'TeacherAdmin',
      meta: { title: 'teacherAdmin' ,icon: 'el-icon-s-custom'}
    },
    {
      path: 'departmentAdmin',
      component: () => import('@/views/admin/DepartmentAdmin'),
      name: 'DepartmentAdmin',
      meta: { title: 'departmentAdmin' ,icon: 'el-icon-s-data'}
    },
    {
      path: 'classAdmin',
      component: () => import('@/views/admin/ClassAdmin'),
      name: 'ClassAdmin',
      meta: { title: 'ClassAdmin' ,icon: 'el-icon-school'}
    },
  ]
}
export default adminRouter
